package com.golddaymicromall.activity.notice;

import android.os.Bundle;
import android.text.Html;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.golddaymicromall.activity.R;
import com.golddaymicromall.base.BaseActivity;

public class NoticeContentActivity extends BaseActivity {
    private TextView notice_content;
    private String Content;
    private LinearLayout mNoticeContentBack;
    String text;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_notice_content);

        Content = getIntent().getStringExtra("Content");
        text = Html.fromHtml(Content).toString();

        initView();
    }

    private void initView() {
        notice_content = (TextView) findViewById(R.id.notice_content);
        mNoticeContentBack = (LinearLayout) findViewById(R.id.noticeContentBack);
        mNoticeContentBack.setOnClickListener(v -> finish());
        notice_content.setText(text);
    }
}
